/**
 * @Description:
 * @Author: CHEHSHUANG
 * @Date: 2019/3/15
 */
import React, {Component, Fragment} from 'react';
import SelectWithService from "../../../commons/components/SelectWithService";
import {flowTaskAppConfig} from "../../../configs/CommonComponentsConfig";
import {Input,Button} from "antd";

class CompleteTbar extends Component {
  state = {
    quickValue: "",
  }
  refreshData = () => {
    const {handleSearchValue} = this.props;
    const {quickValue} = this.state;
    handleSearchValue&&handleSearchValue({quickValue});
  }

  handleSearch = (quickValue) => {
    this.setState({quickValue},()=>this.refreshData());
  }
  render() {
    const {visible=false} = this.props;
    return (
      visible && <div className={"tbar-right"}>
        <Input.Search
          style={{width: 200}}
          allowClear
          placeholder={"输入关键字查询"}
          onSearch={this.handleSearch}
        />
      </div>
    );
  }
}
export default CompleteTbar;
